package com.ksd.pug.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: hcl
 * @date: 2022/1/24 11:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("yp_article_user_collect")
public class ArticleUserCollect implements java.io.Serializable {
    private static final long serialVersionUID = 4149218554125082572L;
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 产品ID
     */
    private Long articleId;
    /**
     *  文章名称
     */
    private String articleName;
    /**
     * 创建时间
     */
    private Date articleTime;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //	点赞数
    @TableField(exist = false)
    private Integer zannum = 0;
    //	收藏数
    @TableField(exist = false)
    private Integer collections = 0;
    @TableField(exist = false)
    private Integer pingluns = 0;
}
